#ifndef SERIALSETTINGSDIALOG_H
#define SERIALSETTINGSDIALOG_H

#include <QDialog>
#include "qextserialport.h"
#include "qextserialenumerator.h"

namespace Ui {
class SerialSettingsDialog;
}

class SerialSettingsDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SerialSettingsDialog(QString &portName, PortSettings *settings, QWidget *parent = 0);
    ~SerialSettingsDialog();

    QString portName();

public slots:
    virtual void accept();

private Q_SLOTS:
    void onPortAddedOrRemoved();

private:
    Ui::SerialSettingsDialog *ui;

    QString m_portName;
    PortSettings *m_pSettings;
};

#endif // SERIALSETTINGSDIALOG_H
